import request from '@/utils/request'

// 获取服务列表
export function getList(params) {
  return request({
    url: '/blog-auth/back/client/list',
    method: 'get',
    params
  })
}

// 服务端允许的客户端
export function getAllowedClient(params) {
  return request({
    url: '/blog-auth/back/client/allowed_client',
    method: 'get',
    params
  })
}

// 客户端可以访问的服务端
export function getAuthorityServiceInfo(params) {
  return request({
    url: '/blog-auth/back/client/authority_service_info',
    method: 'get',
    params
  })
}

// 添加或更新服务
export function addOrUpdate(data) {
  return request({
    url: '/blog-auth/back/client/add_or_update',
    method: 'post',
    data
  })
}
